package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserWorksMarkting;
import com.ecoolex.ying.space.entity.UserWorksMarktingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserWorksMarktingMapper {
    long countByExample(UserWorksMarktingExample example);

    int deleteByExample(UserWorksMarktingExample example);

    int deleteByPrimaryKey(Integer marktingId);

    int insert(UserWorksMarkting record);

    int insertSelective(@Param("record") UserWorksMarkting record, @Param("selective") UserWorksMarkting.Column ... selective);

    UserWorksMarkting selectOneByExample(UserWorksMarktingExample example);

    List<UserWorksMarkting> selectByExample(UserWorksMarktingExample example);

    UserWorksMarkting selectByPrimaryKey(Integer marktingId);

    UserWorksMarkting selectByPrimaryKeyWithLogicalDelete(@Param("marktingId") Integer marktingId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserWorksMarkting record, @Param("example") UserWorksMarktingExample example, @Param("selective") UserWorksMarkting.Column ... selective);

    int updateByExample(@Param("record") UserWorksMarkting record, @Param("example") UserWorksMarktingExample example);

    int updateByPrimaryKeySelective(@Param("record") UserWorksMarkting record, @Param("selective") UserWorksMarkting.Column ... selective);

    int updateByPrimaryKey(UserWorksMarkting record);

    int batchInsert(@Param("list") List<UserWorksMarkting> list);

    int batchInsertSelective(@Param("list") List<UserWorksMarkting> list, @Param("selective") UserWorksMarkting.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserWorksMarktingExample example);

    int logicalDeleteByPrimaryKey(Integer marktingId);
}